package org.restorator.dao.implement.engin;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.restorator.dao.jdbc.RowMapper;
import org.restorator.entity.AnonymTable;
import org.restorator.entity.Table;



public class TableRowMapper implements RowMapper<Table> {

	@Override
	public Table mapRow(ResultSet rs, int rowCount) throws SQLException { //todo 
		Table table = new AnonymTable();
		table.setTableID(rs.getInt(1)); 
		table.setX(rs.getInt(2));
		table.setY(rs.getInt(3));
		table.setStatus(rs.getString(4));
		return table;
	}

}